package com.ruoyi.resource.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资源对象 sys_resource
 * 
 * @author zzzyh
 * @date 2025-09-18
 */
public class SysResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 资源名 */
    @Excel(name = "资源名")
    private String name;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 下载量 */
    @Excel(name = "下载量")
    private Long downloads;

    /** 是否免费 */
    private Long isFree;

    /** 付费方式 */
    private Long payType;

    /** 存储方式 */
    @Excel(name = "存储方式")
    private Long storageType;

    /** 网盘地址 */
    private String panPath;

    /** 网盘验证码 */
    private String panCode;

    /** 本地服务器存储地址 */
    private String servePath;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    private String userName ;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setDownloads(Long downloads) 
    {
        this.downloads = downloads;
    }

    public Long getDownloads() 
    {
        return downloads;
    }

    public void setIsFree(Long isFree) 
    {
        this.isFree = isFree;
    }

    public Long getIsFree() 
    {
        return isFree;
    }

    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }

    public void setStorageType(Long storageType) 
    {
        this.storageType = storageType;
    }

    public Long getStorageType() 
    {
        return storageType;
    }

    public void setPanPath(String panPath) 
    {
        this.panPath = panPath;
    }

    public String getPanPath() 
    {
        return panPath;
    }

    public void setPanCode(String panCode) 
    {
        this.panCode = panCode;
    }

    public String getPanCode() 
    {
        return panCode;
    }

    public void setServePath(String servePath) 
    {
        this.servePath = servePath;
    }

    public String getServePath() 
    {
        return servePath;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("category", getCategory())
            .append("downloads", getDownloads())
            .append("isFree", getIsFree())
            .append("payType", getPayType())
            .append("storageType", getStorageType())
            .append("panPath", getPanPath())
            .append("panCode", getPanCode())
            .append("servePath", getServePath())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
